<!--	<table width='828' border='0' align='center' cellpadding='0' cellspacing='18' bgcolor='#FFFFFF'>
      <tr>
        <td width="250" background="http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/bg/left.jpg" valign="top" align="left">
		<img src="http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/headings/snabbsok.gif" />
		<div class="search">
			<form action="<?php // echo niceLinks($formUrl, NORMAL); ?>" method="post">
				<input name="search" size="25" value="<?php // echo isset($_GET['search'])? htmlspecialchars($_GET['search']): '';?>"/>
				<button type="submit">S&ouml;k</button>
			</form>
		</div>

		<img src="http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/headings/klimatnyheter.png" /><br/>-->

                <?php
                //SECOND
                       // echo $testning;

                	if ($catname) {
			$catname = $catname[0]['cat'];
			echo "<b>$catname</b><br/>";
                        }
                        else echo "<b>Alla</b><br/>";

                        echo '<div id="newslist">';
                        
                      $length = count($title);
                        for ($i=0; $i<=$length-1; $i++)
                {
                      echo "<div style=\"padding:4px\"><small>". $date_publishx[$i] ."</small><br/><a href=\"";
//                    echo niceLinks("?page=news".
//                    (($category)? "&cat=$category":'').
//                    (isset($_GET['sub'])? "&sub=$sub":'').
//                    (($search)? "&search=$search":'').
//                    "&id=$gn[id]", $linkNice);
                      echo "\"><b>".strip_tags($title[$i])."</b>. $text[$i]] &gt;&gt;</a></div>";
                }
                if( $length == 0 )
                echo "Inga nyheter i denna kategorien, kategorin kanske inte finns.";
                        else {
			$nonews=true;
			if (!$search) echo "Inga nyheter i denna kategorien.";
		}
		if ($nonews && $search) echo "S&ouml;kningen gav inga svar";
		if (isset($limitreached) && $limitreached && !$nonews && !$search) echo "<br/><div style=\"text-align:right\" id=\"expander\"><a href=\"javascript:expand_news(2);\">Fler nyheter &gt;&gt;</a></div>";

                ?>

<!--                </div>
		<script type="text/javascript">
			function expand_news(offset) {
				$('expander').innerHTML = '<img src="/gfx/ajax-loader.gif" alt="H�mtar nyheter..."/>'
				var hr = new ajaxRequest("ajax/expand.php?type=news&category=<?php // echo $category?>&sub=<?php // if (isset($_GET['sub'])) echo $sub?>&offset="+offset);
				hr.actions = function() {
					$('newslist').innerHTML = hr.responseText;
				};
				hr.send();
			}
		</script>
		</td>
		<td width="526" valign='top' align="left" style="background:url('http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/bg/main2.jpg') repeat-y">

			<img src="http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/headings/smartakategorier.png"/>
				<table style="width:100%;margin:5px 5px 0 5px;">
					<tr>
						<td align="left" valign="top">
-->

                                                   <?php //TREDJE ?>

<!--                                                    </td>
					</tr>
				</table>
				<div style="padding:0 4px 4px 4px"><small>

                                            <?php //FJÄRDE ?>

                                        </small></div>
				<img src="http://<?php // echo $server[minIndexAndIncreas($serverUsed)]; ?>/gfx/headings/bar.png"/>
				<div style="padding:5px">

                                    <?php //FEMTE ?>

                                    <div style="clear:both;margin-top:20px;">
				<div class="hr"></div>
				<div style="float:right"><a href="<?php // echo niceLinks("?page=contact", $linkNice); ?>"><small>Vill du synas h&auml;r?</small></a></div>
				<div style="padding-bottom:0.5em"><small>Relaterade f&ouml;retag/produkter:</small></div>

                                <?php //SJÄTTE ?>

                                </div>
			</div>
		</td>
	</tr>
</table>-->